<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Api\RcUserController;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::middleware('auth:api')->get('/user', function (Request $request) {
    return $request->user();
});
//用户接口
Route::post('rc_user/add_user', [RcUserController::class, 'AddUser']);
//抽奖
Route::post('rc_user/luck_draw', [RcUserController::class, 'LuckDraw'])->middleware('throttle:2,1');
//个人中奖名单
Route::post('rc_user/prize_user', [RcUserController::class, 'PrizeUser']);
//奖品
Route::post('rc_user/prize', [RcUserController::class, 'Prize']);
//留资
Route::post('rc_user/leaving_message', [RcUserController::class, 'LeavingMessage']);
//Route::post('rc_user/red_box', [RcUserController::class, 'RedBox']);
Route::post('rc_user/test_wx', [RcUserController::class, 'TestWx']);
//发送红包
Route::post('rc_user/send_red_box', [RcUserController::class, 'SendRedBox'])->middleware('throttle:2,5');
//邀请
Route::post('rc_user/add_parent', [RcUserController::class, 'AddParent']);

